package com.test.vo;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAliasType;
import com.thoughtworks.xstream.annotations.XStreamConverter;
import com.thoughtworks.xstream.converters.reflection.ReflectionConverter;

/**
 * Created with IntelliJ IDEA.
 * User: lxf
 * Date: 2018/1/17
 * Time: 10:50
 * To change this template use Editor | File and Code Templates.
 */
@XStreamAlias("serv:message")
public class Message {

    @XStreamAlias(value = "serv:header", impl = Header.class)
    @XStreamConverter(ReflectionConverter.class)
    private Header header;
    @XStreamAlias("serv:body")
    private Body body;

    public Header getHeader() {
        return header;
    }

    public void setHeader(Header header) {
        this.header = header;
    }

    public Body getBody() {
        return body;
    }

    public void setBody(Body body) {
        this.body = body;
    }
}
